package com.huabo.audit.oracle.entity;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@TableName("TBL_NBSJ_OUTERRULE")
@Data
@ApiModel("实体类")
@Accessors(chain = true)
public class TblNbsjOuterruleEntity {

//private static final long serialVersionUID = 1L;
	
	@TableId(value = "outrulid", type= IdType.AUTO)
	@ApiModelProperty(value="")
	private BigDecimal outrulid;
	
	@TableField(value = "rulecode")
	@ApiModelProperty(value="文件编号")
	private String rulecode;
	
	@TableField(value = "rulename")
	@ApiModelProperty(value="")
	private String rulename;
	
	@TableField(value = "publishorg")
	@ApiModelProperty(value="")
	private String publishorg;
	
	@TableField(value = "publishdate")
	@ApiModelProperty(value="")
	@DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE_TIME)
	private Date publishdate;
	
	@TableField(value = "rulenumber")
	@ApiModelProperty(value="")
	private String rulenumber;
	
	@TableField(value = "memo")
	@ApiModelProperty(value="")
	private String memo;
	
	@TableField(value = "outruletype")
	@ApiModelProperty(value="")
	private String outruletype;
	
	@TableField(value = "effectivelevel")
	@ApiModelProperty(value="")
	private String effectivelevel;
	
	@TableField(value = "timeliness")
	@ApiModelProperty(value="")
	private String timeliness;
	
	@TableField(value = "takeeffecttime")
	@ApiModelProperty(value="")
	@DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE_TIME)
	private Date takeeffecttime;
	
	@TableField(value = "summaryinfo")
	@ApiModelProperty(value="")
	private String summaryinfo;
	
	@TableField(value = "bodyinfo")
	@ApiModelProperty(value="")
	private String bodyinfo;
	
	@TableField(value = "enteringperson")
	@ApiModelProperty(value="")
	private String enteringperson;
	
	@TableField(value = "enteringtime")
	@ApiModelProperty(value="")
	@DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE_TIME)
	private Date enteringtime;
	
	@TableField(value = "belongcompany")
	@ApiModelProperty(value="")
	private String belongCompany;
	
	@TableField(value = "tblorganization")
	@ApiModelProperty(value="",hidden=true)
	private TblOrganization tblOrganization;
	
	@TableField("")
	@ApiModelProperty(value="",hidden = true)
    private String orgname;
	
}
